<template>
	<view>
		<view style="background-color: #EAEBEC;width: 100%;">
			
	 <view v-for="(item,index) in lisett">
		 
		 <view style="width: 100%;border: 0px solid red;height: 250rpx;">
		 <view style="text-align: center;line-height: 250rpx;font-size:40rpx;font-weight: 600;">{{item.biaoti}}</view>
		<view style="background-color: #EAEBEC;width: 100%;border: 0px solid red;float: left;">
			<view style="float: left;margin-left: 60rpx;">
		<image   @click="prvimg(item)" class="dimgs" v-for="(item ,index ) in imgs"
			v-bind:src="item" mode="widthFix"></image>
		 </view>
		 </view>
		<view style="background-color: #EAEBEC;width: 100%;">
		<video style="margin-left: 90rpx;margin-top: 40rpx;" :src="shipp"></video>
		</view>
		<view style="background-color: #EAEBEC;width: 100%;height: 40rpx;"></view>
		 <view style="width: 100%;border: 0px solid red;background-color: #EAEBEC;">
			 <view style="font-size: 35rpx;font-weight: 500;padding: 50rpx;">{{item.neiro}}</view>
		 </view>
		 <view style="background-color: #EAEBEC;width: 100%;height: 100rpx;"></view>
		 </view>
	 </view>
	 </view>
	</view>
</template>

<script>
	import yyVideoPlayer from '@/components/yy-video-player/yy-video-player.nvue';
	import xiaoVideoComponent from '../../components/xiao-video-component/xiao-video-component.vue'
	import selectAddress from '@/components/yixuan-selectAddress/yixuan-selectAddress.vue'
	import uniNavBar from '../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
	import cusPreviewImg from '../../components/cus-previewImg/cus-previewImg.vue'
	import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue'; //引用插件
	export default {
		components: {
			yyVideoPlayer,
			 previewImage
		},
		data() {
			return {
				lisett:[],
				imgs:[],
				shipp:""
				
			}
		},
		onLoad(op) {
			this.niu(op._id)
		},
		methods: {
			niu(_id){
				var that=this
				var par={
					_id:_id
				}
				const db = uniCloud.database();
				db.collection("tongzhi")
				.where(par)
				.get()
				.then(function(e){
					that.lisett=e.result.data
					that.imgs=e.result.data[0].zhaop
					that.shipp=e.result.data[0].ship
					that.previewOpen(e)
				})
				.catch(function(d){
					
				})
			},
			prvimg(cururl) {
				//图片预览
				uni.previewImage({
					urls: this.imgs,
					current: cururl
				})
			}
		
		}
	}
</script>

<style>

</style>
